package com.sihan.framework.etm.dto;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * @author QinC
 * @create 2018-09-12 17:26
 */
@Data
public class ResetPsdDTO {

    @NotNull(message = "{reset.psd.id}")
    @ApiModelProperty(value = "用户Id")
    private String id;

    @NotBlank(message = "{user.newPassword}")
    @ApiModelProperty(value = "新用户密码")
    private String newPassword;

    @NotBlank(message = "{user.suNewPassword}")
    @ApiModelProperty(value = "确认密码")
    private String suNewPassword;

    @Override
    public String toString() {
        return "用户id[" + id +
                "]。";
    }
}
